package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 我的测评表
 * @TableName my_test
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyTest implements Serializable {
    /**
     * 主键
     */
    private Integer myTestId;

    /**
     * 外键[user(user_id)]
     */
    private Integer userId;

    /**
     * 外键[mentalTest_id]
     */
    private Integer heartmarkId;

    /**
     * 测评时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date testTime;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getMyTestId() {
        return myTestId;
    }

    /**
     * 主键
     */
    public void setMyTestId(Integer myTestId) {
        this.myTestId = myTestId;
    }

    /**
     * 外键[user(user_id)]
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 外键[user(user_id)]
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 外键[mentalTest_id]
     */
    public Integer getHeartmarkId() {
        return heartmarkId;
    }

    /**
     * 外键[mentalTest_id]
     */
    public void setHeartmarkId(Integer heartmarkId) {
        this.heartmarkId = heartmarkId;
    }

    /**
     * 测评时间
     */
    public Date getTestTime() {
        return testTime;
    }

    /**
     * 测评时间
     */
    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }
}